33e3fbe9eee75b206b33b537d727d9bc54f0cbeb,app/src/main/java/com/c9mj/platform/util/retrofit/RetrofitHelper.java,RetrofitHelper,getExploreHelper,#,34

Before Change


        if (explore == null){
            synchronized (RetrofitHelper.class){
                explore = new Retrofit.Builder()
                        .client(new OkHttpClient.Builder().connectTimeout(5, TimeUnit.SECONDS).build())
                        .baseUrl(BASE_EXPLORE_URL)
                        .addConverterFactory(GsonConverterFactory.create())
                        .addCallAdapterFactory(RxJavaCallAdapterFactory.create())

After Change


                Cache cache = new Cache(httpCacheDirectory, 10 * 1024 * 1024);//缓存10MB
                OkHttpClient.Builder httpBuidler = new OkHttpClient().newBuilder();
                httpBuidler.cache(cache)
                        .connectTimeout(5, TimeUnit.SECONDS)//连接超时�制5秒
                        .addNetworkInterceptor(REWRITE_CACHE_CONTROL_INTERCEPTOR)
                        .addInterceptor(REWRITE_CACHE_CONTROL_INTERCEPTOR);//添加拦截器
                explore = new Retrofit.Builder()